export const MUTATIONS_TYPE = {
  INCREASE: 'increase',
  DECREASE: 'decrease'
}

export default {
  [MUTATIONS_TYPE.INCREASE](state, payload) {
    state.num += payload || 1
  },
  [MUTATIONS_TYPE.DECREASE](state) {
    state.num--
  }
}
